<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>2018/12/6主键版</title>
    <script src="node_modules/vue/dist/vue.min.js"></script>
    <link rel="stylesheet" href="./index.css">
    <!--好的代码像粥一样,是得用时间和精力熬的。-->
</head>
<body>
<div id="main">
    <underway></underway>
    <!--<complete></complete>-->
</div>
</body>
<script type="text/x-template" id="underway">
    <div class="container">
        <div class="pg_hd">
            <div class="form">
                <label for="pg_hd_title">ToDoList</label>
                <input type="text" id="pg_hd_title"  placeholder="添加ToDo" @keyup.enter="add(content)" v-model.lazy="content">
            </div>
        </div>
        <div class="pg_bd">
            <h2>正在进行<span>{{id}}</span></h2>
            <ul v-if='!!edit.length' class="pg_bd-list">
                <li v-for="(item,key) in edit" :key="item.content" class="pg_bd-item">
                    <span class="radioBtn"  @click="del(key)"></span>
                    <p>{{item.content}}</p>
                    <a class="del" href.prevent=" "  @click="delete1(key)"><i></i></a>
                </li>
            </ul>
            <h2>已经完成<span>{{id2}}</span></h2>
            <ul v-if='!!edit2.length' class="pg_bd-list pg_bd-list2">
                <li class="pg_bd-item" draggable="true"  v-for="(item,key) in edit2" :key="item.content">
                    <span class="radioBtn" @click="del2(key)"></span>
                    <p>{{item.content}}</p>
                    <a class="del" href.prevent=" " @click="delete2(key)"><i></i></a>
                </li>
            </ul>
        </div>
        <div class="pg_ft">
            <p>Copyright &copy; 2014 todolist.cn <a href="javascript:clear();">clear</a></p>
        </div>
    </div>
</script>
<script src="js/index.js"></script>
<script src="flexible.js"></script>
</html>
